﻿<%@ Page Title="Ngôi nhà nhỏ - Thông tin tài khoản" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="UserDetails.aspx.cs" Inherits="Interface.Users.UserDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="le-co-menu">
    <div class="le-co-ti-color">
        <div class="le-co-hi-title">THÔNG TIN TÀI KHOẢN</div>
    </div>
    <div class="dlQ">
        <asp:ScriptManager ID="scriptManager" runat="server" />
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate> 
        <asp:FormView ID="fview" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Horizontal" Width="451px" EnableViewState="False" >
            <ItemTemplate>
                <table style="width: 433px">
                    <tr>                
                        <td colspan="2" align="center"><asp:Label runat="server" ID="lblName" Text='<%# bind("Username") %>' ForeColor="DarkRed" Font-Size="Medium" Font-Bold="true"></asp:Label><br /></td>
                    </tr>
                        <tr>                        
                            <td align="left">
                                <asp:Label runat="server" ID="lbl" Text="Họ Tên: "></asp:Label><br />                            
                                <asp:Label runat="server" ID="lbl2" Text="Email: "></asp:Label><br />                                               
                                <asp:Label runat="server" ID="lbl3" Text="Giới tính: "></asp:Label><br />                                      
                                <asp:Label runat="server" ID="lbl5" Text="Ngày sinh: "></asp:Label><br />                                               
                                <asp:Label runat="server" ID="lbl4" Text="Loại thành viên: "></asp:Label><br />                                                                           
                                <asp:Label runat="server" ID="lbl6" Text="Điện thoại: "></asp:Label><br />                                                                                                                                               
                                <asp:Label runat="server" ID="lbl9" Text="Địa chỉ nhà: "></asp:Label><br />                                                 
                            </td> 
                            <td align="left">
                                <asp:Label runat="server" ID="lblHoTen" Text='<%# bind("FullName") %>'></asp:Label><br />
                                <asp:Label runat="server" ID="lblEmail" Text='<%# bind("Email") %>'></asp:Label><br /> 
                                <asp:Label runat="server" ID="lblGender" Text='<%# bind("Gender") %>'></asp:Label><br />
                                <asp:Label runat="server" ID="lblBirthday" Text='<%# bind("Birthday","{0:MM/dd/yyyy}") %>'></asp:Label><br /> 
                                <asp:Label runat="server" ID="lblMT" Text='<%# bind("MemberType") %>'></asp:Label><br />
                                <asp:Label runat="server" ID="lblPhoneNo" Text='<%# bind("PhoneNo") %>'></asp:Label><br />                             
                                <asp:Label runat="server" ID="lblAdd" Text='<%# bind("Address") %>'></asp:Label><br />   
                            </td>
                                                           
                    </tr>
                </table>
            </ItemTemplate>
            <EditItemTemplate>
                    <table>
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lbl6" Text="Họ tên:"></asp:Label></td>
                            <td align="left">                            
                                <asp:TextBox runat="server" ID="txtNameEdit" Text='<%# bind("FullName") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align ="left">
                                <asp:Label runat="server" ID="Label1" Text="Email: "></asp:Label></td>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtEmailEdit" Text='<%# bind("Email") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align ="left">
                                <asp:Label runat="server" ID="Label2" Text="Giới tính: "></asp:Label></td>
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlGenderEdit" DataTextField='<%# Eval("Gender")%>'>
                                    <asp:ListItem>Nam</asp:ListItem>
                                    <asp:ListItem>Nữ</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>                                                                     
                        <tr>
                            <td align="left">
                                <asp:Label runat="server" ID="lbl5" Text="Ngày sinh: "></asp:Label>
                            </td>
                            <td>
                                Ngày <asp:DropDownList ID="ddlDate" runat="server">
                                    </asp:DropDownList>&nbsp;
                                Tháng <asp:DropDownList ID="ddlMonth" runat="server">
                                    </asp:DropDownList>&nbsp;
                                Năm <asp:DropDownList runat="server" ID="ddlYear">
                                    </asp:DropDownList>
                            </td>
                            
                        </tr>
                       
                        <tr>
                            <td align ="left">
                                <asp:Label runat="server" ID="Label3" Text="Loại thành viên: "></asp:Label></td>
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlMBTEdit" SelectedValue='<%# bind("Membertype") %>'>
                                    <asp:ListItem>Admin</asp:ListItem>
                                    <asp:ListItem>Chủ nhà</asp:ListItem>
                                    <asp:ListItem>Khách</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr> 
                        <tr>
                            <td align ="left">
                                <asp:Label runat="server" ID="Label4" Text="Điện thoại: "></asp:Label></td>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtPhoneNoEdit" Text='<%# bind("PhoneNo") %>'></asp:TextBox>
                            </td>
                        </tr>                      
                        <tr>
                            <td align ="left">
                                <asp:Label runat="server" ID="Label8" Text="Địa chỉ: "></asp:Label></td>
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtAddEdit" Text='<%# bind("Address") %>'></asp:TextBox>
                            </td>
                        </tr>
                        
                                              
                        
                    </tr>                         
                    </table>
                </EditItemTemplate>
        </asp:FormView>
        </ContentTemplate>
        </asp:UpdatePanel>
        <table style="width: 457px">
            <tr>
                <td style="text-align: left; width: 443px;" colspan="3">
                    <asp:ImageButton ID="ibtnEdit" runat="server" OnClick="ibtnEdit_Click" ImageUrl="~/Images/Icon/edit-button.png"/>&nbsp;
                    <asp:ImageButton ID="ibtnBack" runat="server" OnClick="ibtnBack_Edit" ImageUrl="~/Images/Icon/Back-button.png"/>
                </td>
            </tr>
        </table> 
        <asp:Label ID="lblMs" runat="server"></asp:Label>  
    </div>
</div>
</asp:Content>
